import { Download, Search, Delete } from '@element-plus/icons-vue'
export const tableColumn = [
  {
    width: 100,
    label: '标题',
    prop: 'title',
  },
  {
    width: 100,
    label: '作者',
    prop: 'authot',
  },
  {
    width: 100,
    label: 'ISBN',
    prop: 'isbn',
  },
  {
    width: 100,
    label: '出版时间',
    prop: 'description',


  },
  {
    width: 100,
    label: '状态',
    prop: 'status',
  },
  {
    width: 100,
    label: '数量',
    prop: 'quantity',
  },
  {
    width: 100,
    label: '总数量',
    prop: 'total_copies',
  },
  {
    width: 100,
    label: '分类',
    prop: 'category_id',
  },
  {
    width: 100,
    label: '创建时间',
    prop: 'created',
    type: 'date',

  },
  {
    width: 100,
    label: '更新时间',
    prop: 'updated',
    type: 'date',
  },

]
export enum BUTTON_TYPE {
  EXPORT = 'EXPORT',
  EXPORTARR = 'EXPORTARR',
  QUERY = 'QUERY',
  RESET = 'RESET',
  // CLEAR = 'CLEAR'
}

export const buttonType = [
  {
    label: '导出勾选数据',
    type: BUTTON_TYPE.EXPORT,
    icon: Download,
  },
  {
    label: '导出全部',
    type: BUTTON_TYPE.EXPORTARR,
    icon: Download
  },
  {
    label: '查询',
    type: BUTTON_TYPE.QUERY,
    icon: Search

  },
  {
    label: '清空',
    type: BUTTON_TYPE.RESET,
    icon: Delete
  }
]
export const statusOtions = [
  {
    value: 'Y',
    label: '已上架'
  },
  {
    value: 'N',
    label: '已下架'
  },
  {
    value: 'all',
    label: '全部'
  }
]
import InputIndex from '@/components/search/InputIndex.vue'
import SelectIndex from '@/components/search/SelectIndex.vue'
import DatePickerIndex from '@/components/search/DatePickerIndex.vue'
export const SearchType = [
  {
    label: '书名',
    component: InputIndex,
    value: 'name'
  },
  {
    label: '作者',
    component: InputIndex,
    value: 'authot'
  },
  {
    label: 'ISBN',
    component: InputIndex,
    value: 'isbn'
  },
  {
    label: '状态',
    component: SelectIndex,
    value: 'status',
  },
  {
    label: '创建时间',
    component: DatePickerIndex,
    value: 'created'
  },
]